<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<link href='/nems/fullcalendar/fullcalendar.css' rel='stylesheet'/>
<link href='/nems/fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='/nems/fullcalendar/jquery-1.9.1.min.js'></script>
<script src='/nems/fullcalendar/jquery-ui-1.10.2.custom.min.js'></script>
<script src='/nems/fullcalendar/fullcalendar.min.js'></script>
<script>
	var json = ${requestScope.json};
	$(document).ready(function() {
		$('#calendar').fullCalendar({
		
			editable: true,
			
			events: json,
			
			loading: function(bool) {
				if (bool) $('#loading').show();
				else $('#loading').hide();
			}
			
		});
		
	});

</script>
<style>

	body {
		font-size: 14px;
		font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
		}
		
	#loading {
		position: absolute;
		top: 5px;
		right: 5px;
		}

	#calendar {
		width: 280px;
		}

</style>
</head>
<body>
<div id='loading' style='display:none'>loading...</div>
<div id='calendar'></div>
</body>
</html>
